import React, { Component } from 'react'
import NContext from '../Context'
import Child9 from '../component/Child9';

export default class Context extends Component {
    constructor(props){
        super(props);
        this.state={
            n:999
        }
    }
  render() {
    return (
      <div>
          <div>父组件</div>
          <NContext.Provider value={this.state.n}>
              <Child9></Child9>
          </NContext.Provider>
      </div>
    )
  }
}
